package cn.syc.struck.demo.http.entity;

/**
 * Created by czz on 16/3/5.
 */
public class HttpResult<T> {

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    private int code;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    private String description;

    public T getDetail() {
        return detail;
    }

    public void setDetail(T detail) {
        this.detail = detail;
    }

    //用来模仿Data
    private T detail;

    @Override
    public String toString() {
        return "HttpResult{" +
                "code=" + code +
                ", description='" + description + '\'' +
                ", detail=" + detail +
                '}';
    }
}
